package bindHandle
import (
	"fmt"
	"go-gui/frame/js"
	"sync"
)
type BindJs struct {
	sync.Mutex
}
var BindObj = &BindJs{}
func (c *BindJs) JsToGo(n, b, d int) {
	c.Lock()
	defer c.Unlock()
	fmt.Println("JS调用go：", n, b, d)
	// go 调用 js 方法
	js.Fun("GoToJs", "111", "2222", "333", "444")
}

func (c *BindJs) JsToGoGetRet() string {
	c.Lock()
	defer c.Unlock()
	return "golang的返回"
}
